Skip to content

Fix array_exprt handling in incremental SMT2 procedure#8778

Open
tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig:fix-8080-inc-smt-array
Open

Fix array_exprt handling in incremental SMT2 procedure#8778
tautschnig wants to merge 1 commit intodiffblue:developfrom
tautschnig:fix-8080-inc-smt-array

Conversation

@tautschnig
Copy link
Copy Markdown
Collaborator

The call to define_dependent_functions ensures that array_exprt expressions are properly handled and their dependent functions are defined before the expression conversion process begins.

Fixes: #8080

  • Each commit message has a non-empty body, explaining why the change was made.
  • n/a Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • n/a The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.01%. Comparing base (bacf91c) to head (8d7fbd5).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #8778   +/-   ##
========================================
  Coverage    80.01%   80.01%           
========================================
  Files         1700     1700           
  Lines       188344   188345    +1     
  Branches        73       73           
========================================
+ Hits        150701   150705    +4     
+ Misses       37643    37640    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tautschnig tautschnig marked this pull request as ready for review November 30, 2025 22:01
The call to `define_dependent_functions` ensures that `array_exprt`
expressions are properly handled and their dependent functions are
defined before the expression conversion process begins.

Fixes: diffblue#8080
Copilot AI review requested due to automatic review settings March 9, 2026 16:18
@tautschnig tautschnig force-pushed the fix-8080-inc-smt-array branch from 7365b9a to 8d7fbd5 Compare March 9, 2026 16:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes incremental SMT2 expression conversion for array_exprt by ensuring dependent functions are defined before converting expressions, and updates an existing regression test to exercise the incremental SMT2 path.

Changes:

  • Call define_dependent_functions(expr) at the start of convert_expr_to_smt.
  • Update an existing CBMC regression test configuration to no longer exclude the “new SMT” path.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/solvers/smt2_incremental/smt2_incremental_decision_procedure.cpp Defines dependent functions before expression substitution/conversion to properly handle array_exprt.
regression/cbmc/array-cell-sensitivity12/test_execution.desc Removes no-new-smt to ensure the regression runs against the incremental SMT2 workflow impacted by this fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

array_exprt is not handled correctly in the incremental smt2 decision procedure

4 participants